<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<meta name="keywords" content="易通汇" />
<meta name="description" content="易通汇" />
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-store, must-revalidate" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>Secure Payment</title>
<link href="<%=request.getContextPath()%>/css/web.css" type="text/css" rel="stylesheet" />
<script src="<%=request.getContextPath()%>/js/jquery.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/lang.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/mm.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/fp2.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jstz.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function() {
		$("#crdDetail").click(function() {
			$("#crdInfo").toggle();
		});
	})
	
	function mainConfirm(){
		location.href="http://<%=request.getParameter("site")%>";
	}

</script>
</head>

<body style="background:url(images/bg.png)">
	<div class="head">
		<div class="headm">
			<div class="headlogo">
				<img src="images/logo/uplog1.jpg" /><img src="images/logo/uplog2.jpg" />
			</div>
			<div class="language">
				Language:<select onchange="helpLanguage(this.value)">
					<option value="EN" selected="selected" >English(United  State)</option>
					<option value="FR" >French(Français)</option>
					<option value="DE" >German(Deutsch)</option>
					<option value="IT" >Italian (In Italiano)</option>
					<option value="RU" >Russian(русский)</option>
					<option value="JP" >Japanese(日本の)</option>
					<option value="ZH" >Chinese(中文)</option>
				</select>
			</div>
			<div class="headright">service@<%=request.getParameter("site").replaceAll("www", "") %></div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="wrapper">

		<div class="message">
			<div class="msewm">
				<img src="<%=request.getContextPath() %>/Qrcoding?site=http://<%= request.getParameter("site")%>" />
			</div>
			<div class="msleft">
				<label id="orderText">Order Number</label> : <b><%=request.getParameter("order") %></b> <br /><label id="websiteText">Thanks for your shopping on</label> :  <a href="http://<%=request.getParameter("site")%>"><b><%=request.getParameter("site")%></b></a>
			</div>
			<div class="price">
				<b><%=request.getParameter("loc") %></b>&nbsp;<b style="color: #555;font-size: 16px;" ><%=request.getParameter("cur") %></b>
				<div class="resh"></div>
			</div>
			<div class="clear"></div>
			<div class="memain" id="crdInfo" >
					Card Holder's Name : <b><%=request.getParameter("hfname") %> <%=request.getParameter("hlname") %></b> Email : <b><%=request.getParameter("hemail") %></b> Phone : <b><%=request.getParameter("hphone") %></b> Country : <b><%=request.getParameter("hcountry") %></b>State : <b><%=request.getParameter("hstate") %></b><br /> 
					Consignee : <b><%=request.getParameter("cfname") %> <%=request.getParameter("clname") %></b> Email : <b><%=request.getParameter("cemail") %></b> Phone : <b><%=request.getParameter("cphone") %></b> Country : <b><%=request.getParameter("ccountry") %></b> State : <b><%=request.getParameter("cstate") %></b>
			</div>
			<div class="clear"></div>
		</div>
		<div class="detail" id="crdDetail">DETAIL</div>
		<div class="clear"></div>
		<div class="content">

			<div class="cliright mico">
				<img src="images/card/visa.png" /><img src="images/card/master.png" /><img src="images/card/jcb.png" /><img src="images/card/ae.png" /><img src="images/card/discover.png" /><img src="images/card/club.png" />
			</div>
			<div class="clear"></div>
			<div>
				<hr />
			</div>
			<div class="clear"></div>
			<div>
				<table style="width: 100%;">
					<tr>
						<td rowspan="5" style="width: 120px;" align="center" valign="middle">
							<img src="<%=request.getContextPath()%>/images/<%=((request.getAttribute("code").equals("0000"))?"success.png":"failure.png") %>"/>
						</td>
						<td style="height: 30px;" colspan="2"><%=((request.getAttribute("code").equals("0000"))?"<b style='color:green;'>SUCCESS</b>":"<b style='color:red;'>FAILURE</b>") %></td>
					<tr>
					<tr style="height: 30px;">
						<td style="height: 30px;width: 120px;">Code : </td>
						<td ><b><%=request.getAttribute("code") %></b></td>
					</tr>
					<tr style="height: 30px;">
						<td style="height: 30px;">Message : </td>
						<td><b><%=request.getAttribute("message") %></b></td>
					</tr>
					<tr style="height: 30px;">
						<td style="height: 30px;">Suggestion : </td>
						<td>
							<%=((request.getAttribute("code").equals("0000"))?"<b></b>":"<b>You can change a card or you can try again later.</b>") %>
						</td>
					</tr>
					
				</table>
			</div>
			<div class="clear"></div>
			<div>
				<hr />
			</div>
			<div class="clear"></div>
			<div>
				<table style="width: 100%;">
					<tr style="height: 30px;">
						<td style="height: 30px;width: 120px;"></td>
						<td ><b>NOTICE : </b></td>
					</tr>
					<tr style="height: 30px;">
						<td style="height: 30px;width: 120px;">&nbsp;</td>
						<td ><label id="onceText">Once the order payment is successful , we will send an e-mail to you .</label></td>
					</tr>
					<tr style="height: 30px;">
						<td style="height: 30px;">&nbsp;</td>
						<td><label id="rateText">Due to folating exchange rate , tiny disparity of order amount may exist .</label></td>
					</tr>
					<tr style="height: 30px;">
						<td style="height: 30px;">&nbsp;</td>
						<td><label id="freshText">Please dont refresh this page , it may resumbit your payment .</label></td>
					</tr>
					
				</table>
			</div>
			
			<div class="clear"></div>

			<div class="btn">
				<input type="button" id="mainButton" value="CONFIRM" class="btnsubmit" onclick="mainConfirm();" />
			</div>

		</div>
		<div class="foot">
			<div class="footleft">&copy;2018 <%=request.getParameter("site") %> ALL right reserved. | version <%=dicts.GlobalDict.VERSION %></div>
			<div class="footright">
				<img src="images/logo/downlog0.jpg" /><img src="images/logo/downlog1.jpg" /><img src="images/logo/downlog2.jpg" /><img src="images/logo/downlog3.jpg" /><img src="images/logo/downlog4.jpg" /><img src="images/logo/downlog5.jpg" />
			</div>
		</div>
	</div>
	

</body>
</html>
